package com.sitech.util;

import org.springframework.util.Assert;

public class SqlMapFactory {

    private static String getDatabaseName(String url) {
        Assert.notNull(url, "jdbcUrl must not be null!");
        String[] strings = url.split(":");
        String databaseName = strings[1];
        return "log4jdbc".equals(databaseName) ? strings[2] : databaseName;
    }

}
